Auto merge of #3668 - KalitaAlexey:fix-example-metadata, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 11 Feb 2017 17:20:36 +0000 (17:20 +0000)
committerbors <bors@rust-lang.org>
Sat, 11 Feb 2017 17:20:36 +0000 (17:20 +0000)
commit6f1b860da7aba4c5ea97a49de08a61f3f330e92d
tree036d92c519d75339b35e96d4153262e29c9c1f83
parent1b39da70af1a7db3b19ac8b6cceb22f2eda43a2c
parent582bc55304a70b128ba7a7f2f7a8b5ed735ac82f
Auto merge of #3668 - KalitaAlexey:fix-example-metadata, r=alexcrichton

Reverted the "kind" field to the previous value.

Added a new field named "crate_types".
Fixes https://github.com/rust-lang/cargo/issues/3654
After this PR `cargo metadata` would output:
```json
{
    "packages": [
        {
            "targets": [
                {
                    "kind": ["lib"],
                    "crate_types": ["lib"]
                },
                {
                    "kind": ["example"],
                    "crate_types": ["staticlib"]
                }
            ]
        }
    ]
}
```

I have added tests.